package com.congiya;

import java.io.IOException;

public class Test2BaseBall {

	final static int MAX_LENGTH = 3;

	
	
	public static void main(String[] args) throws IOException {
		
		int comNumber[] = new int[3];
		int baseBallCnt[];
		int i = 0;
		
		while (i <= comNumber.length) {
			
			int iTemp = (int) (Math.random() * 9) + 1;
			System.out.println("iTemp["+i+"]  : " + iTemp);
			
			for (int k=0; k<i; k++) {
				
				if (comNumber[k] != iTemp) {
					comNumber[i] = iTemp;
					i++;
				}
			}
		}
		
		for (i=0; i<comNumber.length; i++) {
			System.out.println("comNumber["+i+"]  : " + comNumber[i]);
		}
//		
//		byte[] inputText = new byte[100];
//		
//		System.in.read(inputText);
	}
}
